# -*- encoding: utf-8 -*-
"""
File Name: dedicated_line_subscriber
Description:
Author : 'lirui'
date: 2024/2/7
Contact: marjey_lee@163.com
Change Activity:
2024/2/7:
"""
import time

from projects.monitoring.alarm_manager.modules.alarm_handle.impl.dedicated_line_alarm_handler import DedicatedLineAlarmHandler
from projects.monitoring.alarm_manager.modules.subscribers.base_subscriber import BaseSubscriber


class DedicatedLineSubscriber(BaseSubscriber):
    def __init__(
            self,
            host='188.12.26.38',
            port=6379,
            channel='branch_dedicated_line_monitor'
    ):
        super().__init__(
            host=host,
            port=port,
            channel=channel
        )
        self.set_recall(
            DedicatedLineAlarmHandler.handle_subscribe_info
        )
